<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<title>东明家居销售部考核系统</title>
<!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
<![endif]-->
<link rel="shortcut icon" href="./images/icon.png" type="image/x-icon" />
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link href="./css/font-awesome.min.css" rel="stylesheet">
<link href="./css/animate.css" rel="stylesheet">
<link href="./css/style.css" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout white-bg">
<div id="wrapper"> 
	<!-- 头部开始-->
	<div class="header">
		<div class="left"><img src="images/logo2.png"></div>
		<h1>东明家居集团-销售部考核系统</h1>                
    </div>
    <!-- 头部结束-->
    <!--左侧导航开始-->
    <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#" style="display:none"></a>
    <nav class="navbar-default navbar-static-side" role="navigation"  >
           <ul class="nav sidebar-collapse" id="side-menu" >
                <li id="categoryManage">
                    <a href="#">
                        <i class="fa fa fa-reorder"></i>
                        <span class="nav-label">类别管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li><a class="J_menuItem" href="category_add.html">新增类别</a></li>
                        <li><a class="J_menuItem" href="category_search.html">类别查询</a></li>
                       
                    </ul>
                </li> 
                 <li id="projectManage">
                    <a href="#">
                        <i class="fa fa fa-tags"></i>
                        <span class="nav-label">项目管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li><a class="J_menuItem" href="item_add.html">新增项目</a></li>
                        <li><a class="J_menuItem" href="item_search.html">项目查询</a></li>
                    </ul>
                </li>      

                <li id="standardManage">
                    <a href="#">
                        <i class="fa fa fa-bookmark"></i>
                        <span class="nav-label">岗位标准</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li><a class="J_menuItem" href="criterion_add.html">新增岗位标准</a></li>
                        <li><a class="J_menuItem" href="criterion_search.html">查询岗位标准</a></li>   
                    </ul>
                </li>                                           
                <li>
                    <a href="#">
                        <i class="fa fa fa-line-chart"></i>
                        <span class="nav-label">业务考核</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li><a class="J_menuItem" href="examine_search.html">考核查询</a></li>
                        <li><a class="J_menuItem" href="examine_edit.html">考核录入</a></li>
                    </ul>
                </li>                                  
           </ul>
      </nav>
      <!--左侧导航结束--> 
      <!--右侧部分开始-->
      <div id="page-wrapper" class="white-bg dashbard-1">
            <div class="row content-tabs">
                  <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-angle-double-left"></i></button>
                  <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content"> <a href="javascript:;" class="active J_menuTab" data-id="welcome.html">首页</a> </div>
                  </nav>
                  <div class="btn-group roll-nav roll-right">
                        <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span></button>
                        <ul role="menu" class="dropdown-menu dropdown-menu-right">
                            <li class="J_tabCloseAll"><a>关闭全部选项卡</a></li>
                            <li class="J_tabCloseOther"><a>关闭其他选项卡</a></li>
                        </ul>
                  </div>
                  <a href="login.html" style="background:#BEBEBE;border:#BEBEBE" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
                  <button class="roll-nav roll-right J_tabRight"><i class="fa fa-angle-double-right"></i> </button>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="welcome.html" frameborder="0" data-id="welcome.html" seamless></iframe>
            </div>
            <div class="footer">Coptright ©2018 东明家居. All rights Reserved &nbsp;&nbsp;&nbsp;&nbsp;技术支持：数信网</div>
      </div>
      <!--右侧部分结束--> 
</div>
<!-- 全局js --> 
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="./js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="./js/plugins/layer/layer.min.js"></script>
<!-- 自定义js --> 
<script src="./js/hplus.js"></script>
<script type="text/javascript" src="./js/contabs.js"></script>
<!--<script type="text/javascript" src="./js/index/init.js"></script>-->

<script>
    $(function () {
        init()
    })

    function init() {
        //查询类别下拉框
        $.ajax({
            url: "./goSaleBack/initPage", //请求的url地址
            xhrFields: {
                withCredentials: true
            },
            dataType: "json", //返回格式为json
            type: "POST", //请求方式
            processData: false, //对表单data数据是否进行序列化
            contentType: false, //dataType设置你收到服务器数据的格式
            headers: {
                'Content-Type': 'application/json'
            },
            beforeSend: function() {
                //请求前的处理
            },
            success: function(data) {
                if(data.status=="0"){
                    // top.location.href = "../../login.html";
                    window.location.href="./login.html";
                }
                if(data.status=="1"){
                    if(data.store=="总部"){

                    }else{
                        var categoryManage = $("#categoryManage");
                        categoryManage.attr("style","display:none");
                        var projectManage = $("#projectManage");
                        projectManage.attr("style","display:none");
                        var standardManage = $("#standardManage");
                        standardManage.attr("style","display:none");


                    }
                }
            },
            complete: function() {
                //请求完成的处理
            },
            error: function() {}
        });
    }

</script>
</body>
</html>
